//获取应用实例
var app = getApp();
Page({
    data: {
        orderId:"",
       "isShowFootNav": false
    },
    onLoad: function (option) {
      var passCache =  app.getStorageSync(app.globalData.twPassCache);
      console.log(passCache)

	    var isEnCode = option.type == 'enCode'?true:false
        this.setData({
	        passName: passCache.passName,
	        passCode: isEnCode&&passCache.passCode?passCache.passCode.substr(0,3)+'****'+passCache.passCode.substr(passCache.passCode.length-2,passCache.passCode.length):passCache.passCode,
	        birthday: app.toYMDDate(passCache.birthday) ,
	        validateEnd: app.toYMDDate(passCache.validateEnd),
	        birthPlace: passCache.birthPlace,
          bizShortName: passCache.typeName,
          needInvoice: passCache.needInvoice==0?'不需要':'需要',
          items: passCache.timesName
        });
    },
    onHide:function () {
  	},
    detailTap:function (e) {
        var orderId = e.currentTarget.dataset.id;
        app.redirectTo({
            url: '../orderdetail/orderdetail?orderId='+orderId
        });
    }
});
